import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from 'uview-ui'
Vue.use(uView)
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import {
	toast,
	copy,
	modal
} from "./utils/tools";
Vue.prototype.$toast = toast;
Vue.prototype.$copy = copy;
Vue.prototype.$modal = modal;

// 导入并挂载全局的分享方法
import share from './utils/share.js'
Vue.mixin(share)

// 配置公共方法
import { AppServices } from "@/services/index";
Vue.prototype.$api = AppServices;

App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif